package com.baseDemo.web.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.codehaus.jackson.annotate.JsonIgnoreProperties;
import org.hibernate.annotations.GenericGenerator;
import org.hibernate.annotations.Type;
/**
 * 应用对应的数据库持久类
 * @author xianwei
 *
 */
@Entity
@Table(name = "t_ToolbarMenuEntity")
//Json 转换时过滤掉的字段   序列化json字符串为java对象时  不转换没有的字段
@JsonIgnoreProperties(ignoreUnknown=true)
public class ToolbarMenuEntity implements Serializable {

	private static final long serialVersionUID = -8268360866325669679L;
	
	@Id
	@GeneratedValue(generator = "system-uuid")
	@GenericGenerator(name = "system-uuid", strategy = "org.hibernate.id.UUIDGenerator")
	@Column(length = 50)
	private String id;
	@Column(length = 50)
	private String itemId;
	@Column(length = 50)
	private String text;
	@Column(length = 50)
	private String glyph;
	@Column(name="disabled")
	@Type(type="yes_no")
	private boolean disabled;
	@Column(length = 50,columnDefinition="varchar(50) default 'baseauthoritybutton' ")
	private String xtype;
	
	@Column(length = 50)
	private String navigationid;
	@Column(length = 50)
	private String authorityid;
	
	
	@Column(columnDefinition="number(20) default 1 ")
	private Integer seq;
	/**
	 * @return the id
	 */
	public String getId() {
		return id;
	}
	/**
	 * @param id the id to set
	 */
	public void setId(String id) {
		this.id = id;
	}
	/**
	 * @return the itemId
	 */
	public String getItemId() {
		return itemId;
	}
	/**
	 * @param itemId the itemId to set
	 */
	public void setItemId(String itemId) {
		this.itemId = itemId;
	}
	/**
	 * @return the text
	 */
	public String getText() {
		return text;
	}
	/**
	 * @param text the text to set
	 */
	public void setText(String text) {
		this.text = text;
	}
	/**
	 * @return the glyph
	 */
	public String getGlyph() {
		return glyph;
	}
	/**
	 * @param glyph the glyph to set
	 */
	public void setGlyph(String glyph) {
		this.glyph = glyph;
	}
	/**
	 * @return the disabled
	 */
	public boolean isDisabled() {
		return disabled;
	}
	/**
	 * @param disabled the disabled to set
	 */
	public void setDisabled(boolean disabled) {
		this.disabled = disabled;
	}
	/**
	 * @return the seq
	 */
	public Integer getSeq() {
		return seq;
	}
	/**
	 * @param seq the seq to set
	 */
	public void setSeq(Integer seq) {
		this.seq = seq;
	}
	/**
	 * @return the navigationid
	 */
	public String getNavigationid() {
		return navigationid;
	}
	/**
	 * @param navigationid the navigationid to set
	 */
	public void setNavigationid(String navigationid) {
		this.navigationid = navigationid;
	}
	public String getXtype() {
		return xtype;
	}
	public void setXtype(String xtype) {
		this.xtype = xtype;
	}
	public String getAuthorityid() {
		return authorityid;
	}
	public void setAuthorityid(String authorityid) {
		this.authorityid = authorityid;
	}
	
	
}
